Skip to content

logo and gif embedding#257

Closed
Marketen wants to merge 1 commit intomateu/update-uifrom
marc/embed-logo-gif
Closed

logo and gif embedding#257
Marketen wants to merge 1 commit intomateu/update-uifrom
marc/embed-logo-gif

Conversation

@Marketen
Copy link

@Marketen Marketen commented Mar 5, 2026

This pull request enhances the asset inlining process in ui_openvpn/injectToHtml.js by introducing a utility for determining MIME types and adding support for inlining media assets (such as images) directly into the HTML as data URIs. This improves portability and reduces external asset dependencies in the generated HTML.

Media asset inlining improvements:

  • Added a getMimeType function to determine the correct MIME type for various image and icon file extensions, ensuring proper data URI formatting when inlining assets.
  • Implemented logic to inline media files from the static/media directory by replacing references in the HTML with their corresponding base64-encoded data URIs, making the HTML self-contained.

@Marketen Marketen requested a review from a team as a code owner March 5, 2026 09:31
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

Dappnode bot has built and pinned the built packages to an IPFS node, for commit: b1ecd15

This is a development version and should only be installed for testing purposes.

  1. Package vpn.dnp.dappnode.eth

Install link

Hash: /ipfs/QmUJX9dJKjb6HTPhuLG6v5HiJ8HXY69u6z8WXvjzRdyi41

(by dappnodebot/build-action)

@Marketen Marketen closed this Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant